package com.crm.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.crm.domain.entity.Role;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "UserVo对象", description = "用户视图对象")
public class UserVo {

    @ApiModelProperty(value = "用户编号")
    private Long userId;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    private String password;

    @ApiModelProperty(value = "用户类型（0:系统用户,1:客户）")
    private String userType;

    @ApiModelProperty(value = "头像地址")
    private String avatar;

    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @ApiModelProperty(value = "手机号码")
    private String phonenumber;

    @ApiModelProperty(value = "用户性别（0男 1女 2未知）")
    private String sex;

    @ApiModelProperty(value = "部门id")
    private String deptId;

    @ApiModelProperty(value = "岗位id")
    private String postId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建者")
    private String  createBy;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    private Integer delFlag;

    @ApiModelProperty(value = "用户令牌")
    private String userToken;
    /*
    该用户的部门信息
     */
//    @TableField(typeHandler = JacksonTypeHandler.class)
//    private Dept dept;
    @ApiModelProperty(value = "账号删除状态(0:未删除 1:已删除)")
    private Integer status;

    @ApiModelProperty(value = "用户唯一标识")
    private String uuid;
}
